package com.wectrls.system;

import com.wectrls.system.service.SystemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author chenjian
 * @Package
 * @Description:
 * @date 2019-11-20 0:40
 */
@Component
@Slf4j
public class SystemSourcesRunner implements ApplicationRunner {

    @Autowired
    private SystemService systemServiceImpl;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("执行预设数据...");
        systemServiceImpl.SystemBaseSourcesInit();
    }
}
